export default $axios => ({
    getStudent( studentId) {
        return $axios.get('/server/student', {
            params: {
                by:'studentId',
                studentId
            }
        })
    },
    getStudentByRoom( roomId) {
        return $axios.get('/server/student', {
            params: {
                by:'roomId',
                roomId
            }
        })
    },
    getStudentList(){
        return $axios.get('/server/student',{
            params:{
                by:'all',
            }
        })
    },
    getStudentData(){
        return $axios.get('/server/student/data',{
            params:{
                dataType:'check',
            }
        })
    },
    updateStudent(student){
        return $axios.put('/server/student', student)
    },
    checkById(studentId){
        return $axios.post('/server/student/check',{
            by:'studentId',
            studentId
        })
    },
    checkAll(){
        return $axios.post('/server/student',{
            by:'all'
        })
    }
})